package com.six.service.impl;

import com.six.entry.SysUser;
import com.six.mapper.SysUserLoginMapper;
import com.six.service.SysUserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Date:2022/12/10
 * Author：cjl
 */
@Service
public class SysUserLoginServiceImpl implements SysUserLoginService {
    @Autowired
    private SysUserLoginMapper sysUserLoginMapper;
    /**
     * 登陆时查询用户名和密码
     *
     * @param username
     * @param password
     * @return
     */
    @Override
    public SysUser queryUserByNameAndPassword(String username, String password) {
        return sysUserLoginMapper.queryUserByNameAndPassword(username, password);
    }
}
